package cn.lzh.bootactuatoradmin;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableAdminServer
public class BootActuatorAdminApplication  {
//public class BootActuatorAdminApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(BootActuatorAdminApplication.class, args);
	}

//	@NacosInjected
//	private NamingService namingService;
//
//	@Value("${spring.application.name}")
//	private String applicationName;
//
//	@Value("${server.port}")
//	private Integer serverPort;

//	@Override
//	public void run(String... args) throws Exception {
//		// 通过Naming服务注册实例到注册中心
//		namingService.registerInstance(applicationName, "127.0.0.1", serverPort);
//	}
}
